import Vant from 'vant'
import 'vant/lib/index.css'

import service from '../service/_'
import utils from '../utils/index'

export default {
    DevUrl: 'https://admin.hfxike.cn/api/',
    ProdUrl: 'https://admin.hfxike.cn/api/',
    check: function () {
        if (process.env.NODE_ENV == "development") {
            return this.DevUrl
        } else {
            return this.ProdUrl
        }
    },
    ApiUrl: {
        index: '/index',
        getTemplate: 'xkIndexTab/list',
        list: 'xkAssetsScenes/list',
        clothesList: 'xkAssetsPackage/list',
        updateScene: 'xkUserTemplates/updateScene',
        updateAssets: 'xkUserTemplates/updateAssets',
        selectOne: 'sysParameters/selectOne',
    },
    VuePlug: [ Vant ],
    CustomPlug: [
        { n: '$api', v: service },
        { n: '$util', v: utils },
    ]
}